package org.example.service;

import java.util.function.Function;

public class FiveCodeService implements Function<FiveCodeService.Request, FiveCodeService.Response> {

    @Override
    public FiveCodeService.Response apply(FiveCodeService.Request request) {
        // 根据in查询其他4码， 不知道输入的是啥
        String in = request.in;

        return new FiveCodeService.Response("one" + in, "two", "three", "four", "five");
    }

    public record Request(String in) {

    }

    public record Response(String one, String two, String three, String four, String five) {

    }
}
